export type EmptyStateKey =
  'car' |
  'page' |
  'search' |
  'address' |
  'wifi-off' |
  'order' |
  'coupon' |
  'favor' |
  'permission' |
  'history' |
  'news' |
  'message' |
  'list' |
  'data'

export interface ListInstanceRef {
  query: (params?: Record<string, any>) => Promise<false | undefined>
  queryMore: (params?: Record<string, any>) => Promise<void>
  refresh: (params?: Record<string, any>) => Promise<void>
  getDataSource: () => any[]
  clearList: () => void
  state: {
    list: any[]
    totalCount: number
    loading: boolean
    isNone: boolean
    networkErr: boolean
    pageNum: number
    pageSize: number
  }
}
